package com.sansan.qiangji.controller.report;

import com.sansan.qiangji.VO.warehouse.pullOrder.PullOrderBoxDetailListVO;
import com.sansan.qiangji.VO.warehouse.pushOrder.PushOrderBoxDetailListVO;
import com.sansan.qiangji.form.warehouse.PullOrderBoxDetailListForm;
import com.sansan.qiangji.form.warehouse.PushOrderBoxDetailListForm;
import com.sansan.qiangji.realize.base.WarehouseReal;
import com.sansan.qiangji.realize.report.WarehouseRreportReal;
import com.sansan.qiangji.resultVO.ResultVO;
import com.sansan.qiangji.utils.ResultVOUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin()
@RestController
@RequestMapping("/warehouseReport")
public class WarehouseReportController {

    @Autowired
    private WarehouseRreportReal warehouseRreportReal;

    //入库详情明细报表
    @PostMapping("/pushBoxDetailReport")
    public ResultVO pushBoxDetailReport(@RequestBody  PushOrderBoxDetailListForm form){
        PushOrderBoxDetailListVO pushOrderBoxDetailListVO = warehouseRreportReal.pushBoxDetailReport(form);
        return ResultVOUtil.success(pushOrderBoxDetailListVO);
    }


    //入库详情明细报表
    @PostMapping("/pullBoxDetailReport")
    public ResultVO pullBoxDetailReport(@RequestBody PullOrderBoxDetailListForm form){
        PullOrderBoxDetailListVO pullOrderBoxDetailListVO = warehouseRreportReal.pullBoxDetailReport(form);
        return ResultVOUtil.success(pullOrderBoxDetailListVO);
    }

    //工资报表
    @PostMapping("/wageAccountReport")
    public ResultVO wageAccountReport(){
        return  null;
    }




}
